package entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

//不返回将空字段null作为json返回
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class Classroom {
    private Integer id;
    private String name;
    private Building building;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    @Override
    public String toString() {
        return "Classroom{" +
                "id=" + id +
                ", name=" + name +
                '}';
    }
}
